import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  { path: "/login", component: () => import("@/views/login") },
  { path: "/", redirect: "/likede" },
  {
    path: "/layout",
    component: () => import("@/views/layout"),
    children: [
      {
        path: "/likede",
        component: () => import("@/views/likede"),
      },
      {
        path: "/yygd",
        component: () => import("@/views/gdgl/yygd.vue"),
      },
      {
        path: "/ywgd",
        component: () => import("@/views/gdgl/ywgd.vue"),
      },
      {
        path: "/qygl",
        component: () => import("@/views/dwgl/qygl.vue"),
      },
      {
        path: "/dwgl",
        component: () => import("@/views/dwgl/dwgl.vue"),
      },
      {
        path: "/hzsgl",
        component: () => import("@/views/dwgl/hzsgl.vue"),
      },
      {
        path: "/sbgl",
        component: () => import("@/views/sbgl/sbgl.vue"),
      },
      {
        path: "/sbzt",
        component: () => import("@/views/sbgl/sbzt.vue"),
      },
      {
        path: "/sblxgl",
        component: () => import("@/views/sbgl/sblxgl.vue"),
      },
      {
        path: "/rylb",
        component: () => import("@/views/rygl/rylb.vue"),
      },
      {
        path: "/rxtj",
        component: () => import("@/views/rygl/rxtj.vue"),
      },
      {
        path: "/gzllb",
        component: () => import("@/views/rygl/gzllb.vue"),
      },
      {
        path: "/splx",
        component: () => import("@/views/spgl/splx.vue"),
      },
      {
        path: "/spgl",
        component: () => import("@/views/spgl/spgl.vue"),
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
